package controllers

import (
	beego "github.com/beego/beego/v2/server/web"
)

type TeacherController struct {
	beego.Controller
}

// Delete ...
// @Title 阅卷
// @Description 阅卷
// @Param	xuexiao		path 	string	false		"学校"
// @Param	xueyuan		path 	string	true		"学院"
// @Param	sn		path 	string	true		"学号"
// @Param	name	query 	string	true		"姓名"
// @Success 200 {string} delete success!
// @Failure 403 id is empty
// @router /yuejuan/:xuexiao/:xueyuan/:sn [get]
func (c *TeacherController) Yunjuan() {
	xuexiao := c.Ctx.Input.Param(":xuexiao")
	xueyuan := c.Ctx.Input.Param(":xueyuan")
	sn := c.Ctx.Input.Param(":sn")

	name := c.GetString("name")

	c.Data["json"] = "学校：" + xuexiao + "学院：" + xueyuan + "学号" + sn + "姓名：" + name
	c.ServeJSON()
}
